
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>Mtons UI</title>

<!-- Bootstrap core CSS -->
<link href="../../dist/css/bootstrap.min.css" rel="stylesheet">

<!-- Custom styles for this template -->
<link href="../../dist/css/dashboard.css" rel="stylesheet">

<link href="../../theme/default/style.css" rel="stylesheet">

<script src="../../depends/jquery.min.js"></script>
</head>

<body>
	<div class="container-fluid">

		<div class="row">
			<h2 class="sub-header">Panel</h2>

			<p>面板是一个容器容器, 你可以在其中放置 html, url 等内容, Panel可以很方便的嵌入到页面的任何位置。</p>
			<div class="table-responsive">
				<table class="table table-striped" style="width: 600px;">
					<tr>
						<th>方法</th>
						<th>说明</th>
					</tr>
					<tr>
						<td>title</td>
						<td>标题文本</td>
					</tr>
					<tr>
						<td>actions</td>
						<td>控制按钮数组, 可选参数 ['toggle', 'min', 'max', 'close']</td>
					</tr>
				</table>
			</div>
			
			<div>
				<h4>示例：</h4>
				<div id="panel" style="width:500px;height:200px;padding:10px;">
					这是一个Panel
				</div>
				
				<br>
				<pre>
var panel = new mtons.Panel($('#panel'), {
	title:'Panel title',
	actions: ['toggle', 'min', 'max', 'close']
});
				</pre>
			</div>
		</div>
	</div>
	
	<script type="text/javascript" src="../../src/core.js"></script>
	<script type="text/javascript" src="../../src/panel.js"></script>

	<script type="text/javascript">
	$(function(){
		var panel = new mtons.Panel($('#panel'), {
			title:'Panel title',
			width: 200,
			actions: ['toggle', 'min', 'max', 'close']
		});
	});
	</script>
</body>
</html>
